package bairui.international.console.web.controller.finance.score;

import com.lianjing.sh.spring.web.controller.enhance.output.bean.*;

/**
 *
 * @see bairui.international.console.web.controller.finance.score.ProductPage_Output 数据
 *
 */
@SuppressWarnings("serial")
class ProductPage_OutputInfo
{

	/**
	 * 输出信息
	 */
	protected final static OutputBean[] outputInfo() {
		return outputInfo(new OutputData());
	}
	protected final static OutputBean[] outputInfo(OutputData outputData) {
		return new OutputBean[]{
					outputData.getId(),
					outputData.getProductImgUrl(),
					outputData.getProductNumber(),
					outputData.getProductName(),
					outputData.getProductUnit(),
					outputData.getProductScore(),
					outputData.getAmount(),
					outputData.getProductTotalScore(),
					outputData.getProductComment(),
					outputData.getType(),
			};
	}
	
	protected static class OutputData {
		OutputBean getId(){
			return new OutputBean("id", "", true, DataDisplay.Hide, DataType.CompositePK, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getProductImgUrl(){
			return new OutputBean("productImgUrl", "产品图片", true, DataDisplay.Show, DataType.Img, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getProductNumber(){
			return new OutputBean("productNumber", "产品代码", true, DataDisplay.Show, DataType.String, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getProductName(){
			return new OutputBean("productName", "产品名称", true, DataDisplay.Show, DataType.String, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getProductUnit(){
			return new OutputBean("productUnit", "产品单位", true, DataDisplay.Show, DataType.String, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getProductScore(){
			return new OutputBean("productScore", "产品积分", true, DataDisplay.Show, DataType.Double, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getAmount(){
			return new OutputBean("amount", "数量", true, DataDisplay.Show, DataType.Long, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getProductTotalScore(){
			return new OutputBean("productTotalScore", "产品总积分", true, DataDisplay.Show, DataType.Double, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getProductComment(){
			return new OutputBean("productComment", "产品备注", true, DataDisplay.Show, DataType.String, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getType(){
			return new OutputBean("type", "类型", true, DataDisplay.Show, DataType.Enum, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
	}
	
	/**
	 * 分页信息
	 */
	protected final static com.lianjing.sh.spring.web.controller.enhance.output.page.GenerateFindFilterPageBean pageInfo() {
		return new com.lianjing.sh.spring.web.controller.enhance.output.page.GenerateFindFilterPageBean(
			"startPage", 
			"pageSize", 
			0, 
			10, 
			"开始位置", 
			"最大显示"
		);
	}
	
	/**
	 * 排序信息
	 */
	protected final static com.lianjing.sh.spring.web.controller.enhance.output.order.GenerateFindFilterOrderBean orderInfo() {
		return new com.lianjing.sh.spring.web.controller.enhance.output.order.GenerateFindFilterOrderBean(
			com.lianjing.sh.web.separatepage.OrderInfo.OrderBy, 
			com.lianjing.sh.web.separatepage.OrderInfo.OrderWay, 
			"id",
			org.springframework.data.domain.Sort.Direction.DESC
		);
	}
	

}

